<?php

namespace app\admin\controller;
use app\common\lib\IAuth;
use think\Cache;
use think\Controller;
use think\Request;
use think\Session;

class Merchant extends Base
{
    /**
     * 商户首页
     *
     * @return \think\Response
     */
    public function index()
    {
        $data = model('merchant')->where(['status'=>config('code.status_normal')])->select();
        return $this->fetch('',['data'=>$data]);
    }

    /**
     * 添加商户
     */
    public function add()
    {
        if(\request()->isPost()){

        }
        return $this->fetch();
    }
}
